package com.bob.demo.system.controller;

import org.springframework.stereotype.Controller;

import com.bob.demo.system.model.User;
import com.bob.demo.utils.ShiroUtils;

@Controller
public class BaseController {
	public User getUser() {
		return ShiroUtils.getUser();
	}

	public String getUserId() {
		return getUser().getId();
	}

	public String getUsername() {
		return getUser().getUsername();
	}
}